package com.zhou.service.impl;

import com.zhou.entity.TheoQues;
import com.zhou.mapper.TheoQuesMapper;
import com.zhou.service.TheoQuesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 题目信息表 服务实现类
 * </p>
 *
 * @author admin
 * @since 2023-03-02
 */
@Service
public class TheoQuesServiceImpl extends ServiceImpl<TheoQuesMapper, TheoQues> implements TheoQuesService {

    @Autowired
    private TheoQuesMapper theoQuesMapper;

    @Override
    public boolean removeBatchByIds(List<Integer> quesIds) {
        int deletedCount = theoQuesMapper.deleteBatchIds(quesIds);
        return deletedCount == quesIds.size();
    }
}
